<?php

namespace app\app\controller;

use app\app\model\ProjectMatterModel;
use app\app\model\ProjectPaperModel;
use app\app\model\ProjectPlanModel;
use app\app\model\ProjectSGJHModel;
use app\app\model\ProjectTDModel;
use app\app\model\ProjectWZModel;
use app\BaseController;

class ProjectPlanList extends BaseController
{

    //关键节点计计划
    public function plan()
    {
        $project_id = input('project_id');
        $list = ProjectPlanModel::where('project_id', $project_id)->select();
        $this->success('success', $list);
    }

    //停电计划
    public function power()
    {
        $project_id = input('project_id');
        $list = ProjectTDModel::where('project_id', $project_id)->select();
        $this->success('success', $list);
    }

    //设计计划
    public function paper()
    {
        $project_id = input('project_id');
        $list = ProjectPaperModel::where('project_id', $project_id)->select();
        $this->success('success', $list);
    }

    public function material()
    {
        $project_id = input('project_id');
        $list = ProjectWZModel::where('project_id', $project_id)->select();
        $this->success('success', $list);
    }

    public function build()
    {
        $project_id = input('project_id');
        $list = ProjectSGJHModel::where('project_id', $project_id)->select();
        $this->success('success', $list);
    }


}
